package com.iccct.feign.remote;

import com.iccct.feign.Constant.ServerConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * comment
 *
 * @author iccct (taowutt1@gmail.com)
 * @since 2021-07-28  14:22
 */
@FeignClient(value = ServerConstant.PROVIDER_FEIGN_SERVICE)
@RequestMapping("/provider")
public interface IProviderService {

    @GetMapping("/echo/{str}")
    public String echo(@PathVariable("str") String str);
}
